package com.xz.demo.factory.impl;

import com.xz.demo.domain.Product;
import com.xz.demo.domain.ProductA;
import com.xz.demo.factory.Factory;

/**
 * @author 张志航     
 * @version V1.0.0
 * @projectName design_mode
 * @title     ProductAFactory   
 * @package    com.xz.demo.factory.impl  
 * @date   2019/11/26 18:43  
 * @explain
 */
public class ProductAFactory implements Factory {
    @Override
    public Product getProduct() {
        System.out.println("产生了产品类A");
        return new ProductA();
    }
}
